<%--
  Created by IntelliJ IDEA.
  User: 王昕喆
  Date: 2021/4/9
  Time: 14:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="./static/css/bootstrap.min.css">
</head>
<style>
    #tab {
        width: 600px;
    }

    tr:not(:last-child):not(:first-child) td:nth-child(2) {
        text-align: left;
    }

    /*  !important 样式最优先   */
    tr:not(:last-child) td:nth-child(1){
        padding-top: 17px !important;
        background-color: #ced5bd;
    }
</style>
<body>
<form action="order?opr=getUp" method="post">
    <table id="tab" align="center" class="table table-hover table-bordered">
        <tr>
            <td colspan="7">
                <!--text-center  文本居中 -->
                <h1 style="text-align: center">修改订单信息</h1>
            </td>
        </tr>
        <tr>
            <td>客户序号</td>
            <td>
                <input type="hidden" class="form-control" id="id" name="id" value="${order.id}">
                <input type="text" class="form-control" id="userId" name="userId" value="${order.userId}">
            </td>
        </tr>
        <tr>
            <td>登陆姓名</td>
            <td>
                <input type="text" class="form-control" id="loginName" name="loginName" value="${order.loginName}">
            </td>
        </tr>
        <tr>
            <td>用户地址</td>
            <td>
                <input type="text" class="form-control" id="userAddress" name="userAddress" value="${order.userAddress}">
            </td>
        </tr>
        <tr>
            <td>订单时间</td>
            <td>
                <input type="text" class="form-control" id="createTime" name="createTime" value="${order.createTime}">
            </td>
        </tr>
        <tr>
            <td>总消费</td>
            <td>
                <input type="text" class="form-control" id="cost" name="cost" value="${order.cost}">
            </td>
        </tr>
        <tr>
            <td>订单号</td>
            <td>
                <input type="text" class="form-control" id="serialNumber" name="serialNumber" value="${order.serialNumber}">
            </td>
        </tr>
        <tr>
            <td colspan="5">
                <p style="text-align: center">
                    <button type="submit" class="btn btn-primary">提交</button>&nbsp;&nbsp;&nbsp;
                    <button type="reset" class="btn btn-primary" onclick="fanhui()">取消</button>
                </p>
            </td>
        </tr>
    </table>
</form>
<script src="./static/js/jquery-3.5.1.js"></script>
<script>
    function fanhui(){
        location.href="order?opr=my";
    }
</script>
</body>
</html>
